<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/5/12 0012
  Time: 16:26
  To change this template use File | Settings | File Templates.
--%>
<%@ include file="/WEB-INF/views/include/header.jsp"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<input type="text" value="${pageIndex}" hidden id="pageIndex">
<input type="text" value="${pageCount}" hidden id="pageCount">
<input type="text" value='${jsonObject}' hidden id="jsonObject">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend style="font-size: 14px;">
        <form class="layui-form" method="post" action="querylist" name="search">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input name="croFeeVo.name" id="feename" lay-verify="" autocomplete="off" value="${recroFeeVo.name}"
                           placeholder="请输入费用名称" class="layui-input" type="text">
                </div>&nbsp;
                <div class="layui-input-inline">
                    <select  name="croFeeVo.type" id="crofeetype">
                        <option value="">费用类型</option>
                        <c:forEach items="${SysDict['fee_type']}" var="type">
                            <c:if test="${recroFeeVo.type==type.key}">
                                <option value="${type.key}" selected>${type.value}</option>
                            </c:if>
                            <c:if test="${recroFeeVo.type!=type.key}">
                                <option value="${type.key}">${type.value}</option>
                            </c:if>
                        </c:forEach>
                    </select>
                </div>&nbsp;
                <div class=" layui-inline">
                    <label class="layui-form-label">费用范围</label>
                    <div class="layui-input-inline" style="width: 100px;">
                        <input value="${recroFeeVo.starcost}" name="croFeeVo.starcost" class="layui-input"
                               placeholder="起始费用" type="text" >
                    </div>
                    <div class="layui-form-mid">:</div>
                    <div class="layui-input-inline" style="width: 100px;">
                        <input value="${recroFeeVo.endcost}" name="croFeeVo.endcost" class="layui-input"
                               placeholder="费用" type="text" >
                    </div>
                </div>&nbsp;
                <input type="submit" id="search" class="layui-btn layui-btn-normal btn-search" value="搜索">
            </div>
        </form>
    </legend>
</fieldset>
<div class="layui-form" id="cp">
    <table class="layui-table">
        <colgroup>
            <col width="50">
            <col width="150">
            <col width="150">
            <col width="200">
            <col width="200">
        </colgroup>
        <thead>
            <tr>
                <th>序号</th>
                <th>费用名称</th>
                <th>费用类型</th>
                <th>费用</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
        <c:forEach items="${crofee}" var="fee" varStatus="i">
            <tr>
                <c:set var="a" value="${a+1}" />
                <td>${a}</td>
                <td>${fee.name}</td>
                <td>${SysDict['fee_type'][fee.type]}</td>
                <td>${fee.cost}</td>

                <td><a data-method="update" feeid="${fee.id}" class="layui-btn updatefee">修改</a>
                    <a data-method="delfee" feeid="${fee.id}" class="layui-btn delsumit" >删除</a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
<%--分页显示区域--%>
<div id="fullpage"></div>